package com.ljc.cjgl.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.ljc.cjgl.entitiy.Knowledge;
@Repository
public interface KnowledgeRepository extends JpaRepository<Knowledge, Integer>, JpaSpecificationExecutor<Knowledge> {

	public Page<Knowledge> findByOnTop(boolean b, Pageable pageRequest);

	public List<Knowledge> findByCourseId(Integer id);

}
